
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ include file="menu.jsp" %>

<a href="${pageContext.request.contextPath}/insertStudent.jsp">添加</a><br>
    <table border="1" >
        <thead>
        <td>学生id</td>
        <td>学生名字</td>
        <td>学生密码</td>
        <td>操作</td>
        </thead>
        <tbody>
        <c:forEach items="${students}" var="one">
            <tr>
                <td>${one.sId}</td>
                <td>${one.sName}</td>
                <td>${one.sPassword}</td>
                <td><a href="queryStudentById?sId=${one.sId}">编辑</a>
                    <a href="deleteStudent?sId=${one.sId}">删除</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
</body>
</html>
